package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterQianDaoRecordDao;
import com.vf.admin.miaodong.entity.AppQianDaoRecord;
import com.vf.admin.miaodong.service.AfterQianDaoRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AfterQianDaoRecordServiceImpl.java
 * @Description 签到记录
 * @createTime 2021年07月23日 18:31:00
 */

@Service
public class AfterQianDaoRecordServiceImpl implements AfterQianDaoRecordService {

    @Autowired
    AfterQianDaoRecordDao afterQianDaoRecordDao;

    /**
     * 新增或更新
     * @param appQianDaoRecord
     */
    @Override
    public void saveOrUpdate(AppQianDaoRecord appQianDaoRecord) {
        afterQianDaoRecordDao.saveOrUpdate(appQianDaoRecord);
    }

    /**
     * 综合查询
     */
    @Override
    public List<AppQianDaoRecord> findList(Map<String, Object> paramap, SplitPageBean splitPageBean) {
        return afterQianDaoRecordDao.findList(paramap,splitPageBean);
    }

    /**
     * 获取用户获取当日签到记录
     * @param userid
     * @return
     */
    @Override
    public AppQianDaoRecord getByUserId(Integer userid){
        return afterQianDaoRecordDao.getByUserId(userid);
    }
}